package com.haima.ziliao.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.io.Serializable;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.haima.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.haima.common.core.domain.BaseEntity;

/**
 * 订单管理对象 p_orders
 * 
 * @author hima
 * @date 2024-10-21
 */
public class POrders implements Serializable
{
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /** ID */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 订单类型 */
    @Excel(name = "订单类型")
    @TableField("orderType")
    private String orderType;

    /** 订单号 */
    @Excel(name = "订单号")
    @TableField("orderNum")
    private String orderNum;

    /** 微信订单号 */
    @Excel(name = "微信订单号")
    @TableField("wxNum")
    private String wxNum;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String name;

    /** 商品金额 */
    @Excel(name = "商品金额")
    private String jine;

    /** 实付金额 */
    @Excel(name = "实付金额")
    private String shifu;

    /** 订单状态 */
    @Excel(name = "订单状态")
    private String status;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long uid;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField("addTime")
    private Date addTime;

    /** 支付信息 */
    @Excel(name = "支付信息")
    @TableField("payInfo")
    private String payInfo;

    /** 支付时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "支付时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField("payTime")
    private String payTime;

    /** 关联商品 */
    @Excel(name = "关联商品")
    private Long bid;

    @TableField(exist = false)
    private PVipconfig vipconfig;

    @TableField(exist = false)
    private PDayinOrder dayinOrder;
    @TableField("yunfei")
    private BigDecimal yunfei;
    @TableField("youhui")
    private BigDecimal youhui;

    public BigDecimal getYunfei() {
        return yunfei;
    }

    public void setYunfei(BigDecimal yunfei) {
        this.yunfei = yunfei;
    }

    public BigDecimal getYouhui() {
        return youhui;
    }

    public void setYouhui(BigDecimal youhui) {
        this.youhui = youhui;
    }

    public PVipconfig getVipconfig() {
        return vipconfig;
    }

    public void setVipconfig(PVipconfig vipconfig) {
        this.vipconfig = vipconfig;
    }

    public PDayinOrder getDayinOrder() {
        return dayinOrder;
    }

    public void setDayinOrder(PDayinOrder dayinOrder) {
        this.dayinOrder = dayinOrder;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setOrderType(String orderType) 
    {
        this.orderType = orderType;
    }

    public String getOrderType() 
    {
        return orderType;
    }
    public void setOrderNum(String orderNum) 
    {
        this.orderNum = orderNum;
    }

    public String getOrderNum() 
    {
        return orderNum;
    }
    public void setWxNum(String wxNum) 
    {
        this.wxNum = wxNum;
    }

    public String getWxNum() 
    {
        return wxNum;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setJine(String jine) 
    {
        this.jine = jine;
    }

    public String getJine() 
    {
        return jine;
    }
    public void setShifu(String shifu) 
    {
        this.shifu = shifu;
    }

    public String getShifu() 
    {
        return shifu;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setUid(Long uid) 
    {
        this.uid = uid;
    }

    public Long getUid() 
    {
        return uid;
    }
    public void setAddTime(Date addTime) 
    {
        this.addTime = addTime;
    }

    public Date getAddTime() 
    {
        return addTime;
    }
    public void setPayInfo(String payInfo) 
    {
        this.payInfo = payInfo;
    }

    public String getPayInfo() 
    {
        return payInfo;
    }
    public void setPayTime(String payTime)
    {
        this.payTime = payTime;
    }

    public String getPayTime()
    {
        return payTime;
    }
    public void setBid(Long bid) 
    {
        this.bid = bid;
    }

    public Long getBid() 
    {
        return bid;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderType", getOrderType())
            .append("orderNum", getOrderNum())
            .append("wxNum", getWxNum())
            .append("name", getName())
            .append("jine", getJine())
            .append("shifu", getShifu())
            .append("status", getStatus())
            .append("uid", getUid())
            .append("addTime", getAddTime())
            .append("payInfo", getPayInfo())
            .append("payTime", getPayTime())
            .append("bid", getBid())
            .append("yunfei", getYunfei())
            .append("youhui", getYouhui())
            .toString();
    }
}
